#define _CRT_SECURE_NO_WARNINGS 1

int removeDuplicates(int* nums, int numsSize) {
    int n = 0;
    int m = 1;
    while (m < numsSize)
    {
        if ((nums[n] ^ nums[m]) == 0)
        {
            for (int i = m; i < numsSize - 1; i++)
            {
                nums[i] = nums[i + 1];
            }
            numsSize--;
        }
        else
        {
            n++;
            m++;
        }
    }
    return numsSize;
}

int main()
{
    int nums[] = { 0,0,1,1,1,2,2,3,3,4 };
    removeDuplicates(nums, 10);

    return 0;
}